
<%@ page language="java" import="java.util.*,java.sql.*"
  pageEncoding="utf-8"%>
<%@page import="DAO.UserDao"%>
<%@page import="VO.User"%>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/public.css">
	<link rel="stylesheet" type="text/css" href="css/usermsgcheck.css">
	<title>用户个人信息查看</title>
</head>
<body>

	<% 
ArrayList users=null;
User user=(User)session.getAttribute("user"); 
 
UserDao userdao=new UserDao();
users=userdao.userMsg(user.getAccount());
   %>

	<div id="mainbody">
		<div id="main">
			<div class="title">用户个人信息</div>
			<div class="msg">

			<%
      for(int i=0;i<users.size();i++){
           User usermsg =(User)users.get(i);//类型转换
    %>
				<p>账号：  <%= usermsg.getAccount()%></p>
				<p>姓名：  <%= usermsg.getName() %></p>
				<p>电话：  <%= usermsg.getTele() %></p>
				<p>邮箱：  <%= usermsg.getMail() %></p>

				    <% } %>
			</div>
		</div>
	</div>

</body>
</html>